<!-- 店铺首页 -->
<template>
    <shop-index></shop-index>
</template>

<script lang="ts">
import {
    Vue,
    Component
} from 'nuxt-property-decorator'
import shopIndex from '~/components/shop/index.vue'
@Component({
    layout: 'shop',
    components: {
        shopIndex
    },
    validate ({params, store}) {
        const flag = /^\d+$/.test(params.id)
        if (flag) {
            store.commit('setShopId', params.id)
        }
        return flag
    },
    head () {
        const that = this as any
        return {
            title: `${that.$store.state.shopInfo.data.shopTitle || '店铺首页'}-CIIP供需中心`,
            meta: [
                {
                    hid: 'description',
                    name: 'description',
                    content: '建筑行业供方店铺，在这里可以查看店铺可提供的产品或服务，还可查看店铺过往案例。'
                },
                {
                    hid: 'keywords',
                    name: 'keywords',
                    content: '建筑服务方，找服务商'
                }
            ]
        }
    }
})
export default class PageShopIndex extends Vue {}
</script>
